﻿/**
 * @license Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.html or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here.
	// For the complete reference:
	// http://docs.ckeditor.com/#!/api/CKEDITOR.config

	// The toolbar groups arrangement, optimized for two toolbar rows.
	config.enterMode = CKEDITOR.ENTER_BR;  
  
    // 当输入：shift+Enter是插入的标签  
    config.shiftEnterMode = CKEDITOR.ENTER_BR;//   
    //图片处理  
    config.pasteFromWordRemoveStyles = true;  
    config.filebrowserImageUploadUrl = "ckUploadImage.action?type=image";  
      
    // 去掉ckeditor“保存”按钮  
    config.removePlugins = 'save';  
	
	config.toolbarGroups = [
		{name:"document",groups:["mode","document","doctools"]},
		{name:"clipboard",groups:["clipboard","undo"]},
		{name:"editing",groups:["find","selection","spellchecker"]},
		{name:"forms"},
		{name:"styles"},
		{name:"colors"},
		"/",
		{name:"basicstyles",groups:["basicstyles","cleanup"]},
		{name:"paragraph",groups:["list","indent","blocks","align"]},
		{name:"links"},
		{name:"insert"},
		{name:"others"},
		{name:"tools"}
		
	];

	// Remove some buttons, provided by the standard plugins, which we don't
	// need to have in the Standard(s) toolbar.
	config.removeButtons = 'Underline,Subscript,Superscript';
	
	
};
